/***************************************************************************
 *   Copyright (C) 2009 by mj   *
 *   mj_dv@web.de   *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 ***************************************************************************/

// steamserverutil.h is a part of the steamserverutil project
// steamserverutil.googlecode.com

#ifndef STEAMSERVERUTIL_H
#define STEAMSERVERUTIL_H

#include <QComboBox>
#include <QTableWidget>

class steamserverutil
{
public:
    steamserverutil();

    bool is_installed(QComboBox *);
    void get_workspace();
    void get_old_workspace();
    std::string get_home();
    void set_workspace(QString);
    void system_check(int r);
    std::string install(int choice);
    void install_mani(int index);
    void start_server(int);
    void edit_mapcl(int x, int index, int choice, QTableWidget *);
    void servercfg(int index, int choice, QTableWidget *servercfgTable);
    void mani_admins(int index, int choice, QTableWidget *adminWidget);
    void wordfilter(int index, int choice, QTableWidget *filterTable);
    void rcon(int index, int choice, QTableWidget *rconTable);
    void votequestionlist(int index, int choice, QTableWidget *voteTable);
    void ping_reserve(int x, int index, int choice, QTableWidget *reserveTable);
    void voterconlist(int index, int choice, QTableWidget *voteRconTable);
    void sounds(int i, int index, int choice, QTableWidget *soundTable);
    void server_path(unsigned short int);
    void copy_maps(int index, std::string folder);



    std::string param;
    int server[20];
    std::string workdir;

private:


    std::string temp;



    int i; //saves max installed servers
    bool server_css, server_dods, server_garrysmod, server_hl2mp, server_tf, server_cs, server_czero, server_dmc, server_dod, server_gearbox, server_ricochet, server_tfc, server_darkmessiah, server_chivalry, server_diprip, server_insurgency, server_synergy, server_zps, server_esmod, server_l4d;
    //is set true when server is installed
};

#endif // STEAMSERVERUTIL_H
